BigDFT.LogUtils module
Provides utilities for BigDFT logging events
- class LogHandler(file: Optional[str] = None, level: Optional[str] = None, overwrite: Optional[bool] = None)[source]
Log handler for PyBigDFT events
- Parameters:
This class allows updating of the logging features, and explicit log messages for debugging.
Before any BigDFT modules are imported, you have the opportunity to hook into the logger and change options:
>>> import BigDFT >>> BigDFT.Logger.level = 'debug' # set the log level to DEBUG >>> BigDFT.Logger.overwrite = True # force a new file each time >>> BigDFT.Logger.path = './logs' # place the log in a dir named 'log'
- property level
Return the string format of the current logging level
- property path
Attribute determining the current log path
- property overwrite
Attribute determining the write mode of the logfiles
Set True before any logging is done to utilise a new file